cc.Class({
    extends: cc.Component,
	
	properties: {
		canvas:{
			default:null,
			type:cc.Node
		},
	 },

    callback(){
		//cc.director.loadScene('game');
		
		this.canvas.runAction(cc.fadeOut(1));
		
		this.exChangeCallback = cc.callFunc(function () {
				cc.director.loadScene('chapterSelect');
		}, this);
		
		this.node.runAction(cc.sequence(cc.delayTime(0.8),this.exChangeCallback));
	}
});
